package cn.tedu._03vehicle.base.servlet;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import java.io.IOException;

public class DataServlet extends HttpServlet {
    @Override
    public void init() throws ServletException {
        System.out.println("init开始初始化");
//        super.init();
    }

    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
//        super.service(req, res);
        res.getWriter().println("<h1>Hello world</h1>");
    }

    @Override
    public void destroy() {
        System.out.println("destroy开始销毁");
//        super.destroy();
    }
}
